//
//  UpdateTestWordManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/9.
//

#import "UpdateTestWordManager.h"

@implementation UpdateTestWordManager

-(NSString *)methodName{
    return @"/system/word/test/app/saveTestWord";
}


-(JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypePOST;
}


-(NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"groupId"] = self.groupId;
    dict[@"courseId"] = self.courseId;
    dict[@"wordId"] = self.wordId;
    dict[@"correct"] = self.correct;
    dict[@"mode"] = self.mode;
    dict[@"bookId"] = self.bookId;
    return dict;
}

@end
